import { IsNumber, IsOptional, Min } from 'class-validator';

export default class Dto {
    @Min(0.01)
    @IsNumber({})
    amount:string;

    @Min(0)
    @IsNumber({})
    @IsOptional()
    reward:string;
}

export class AddDto extends Dto {
    
}


export class UpdateDto extends Dto {
    
}
